using System;
using Common.Logging;
using NServiceBus;
using NServiceBus.Config;
using NServiceBus.Unicast.Config;
using NServiceBus.Unicast.Transport.Msmq.Config;

namespace Subscriber1
{
    class Program
    {
        static void Main()
        {
            /*
                        LogManager.GetLogger("hello").Debug("Started.");
                        ObjectBuilder.CastleFramework.Builder builder = new ObjectBuilder.CastleFramework.Builder();

                        Configure.With(builder).SagasAndMessageHandlersIn(typeof(EventMessageHandler).Assembly);

                        new ConfigMsmqTransport(builder)
                            .IsTransactional(false)
                            .PurgeOnStartup(false)
                            .UseXmlSerialization(false);

                        new ConfigUnicastBus(builder)
                            .ImpersonateSender(false)
                            .SetMessageHandlersFromAssembliesInOrder(
                                typeof(EventMessageHandler).Assembly
                            );

                        IBus bus = builder.Build<IBus>();

                        bus.Start();

                        bus.Subscribe(typeof(EventMessage));

                        Console.WriteLine("Listening for events. To exit, press 'q' and then 'Enter'.");
                        while (Console.ReadLine().ToLower() != "q")
                        {
                        }
        
             */
        }
    }
}
